home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / basics / mfc simpleplayer.win / simpleplayermfcview.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.6 KB  |  60 lines

  1. // SimplePlayer MFCView.h : interface of the CSimplePlayerMFCView class
  2. //
  3. /////////////////////////////////////////////////////////////////////////////
  4. #include "CQuickTime.h"
  5.  
  6. class CSimplePlayerMFCView : public CView
  7. {
  8. protected: // create from serialization only
  9.     CSimplePlayerMFCView();
  10.     DECLARE_DYNCREATE(CSimplePlayerMFCView)
  11.  
  12. // Attributes
  13. public:
  14.     CSimplePlayerMFCDoc* GetDocument(); 
  15.     CString    mfullPath;
  16.     CQuickTime *pQuickTime;        // QuickTime object
  17.     BOOL OpenMovie(void);        // Open a movie
  18.     void CloseMovie(void);        // Close a movie
  19.  
  20.  
  21. // Operations
  22. public:
  23.  
  24. // Overrides
  25.     // ClassWizard generated virtual function overrides
  26.     //{{AFX_VIRTUAL(CSimplePlayerMFCView)
  27.     public:
  28.     virtual void OnDraw(CDC* pDC);  // overridden to draw this view
  29.     virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  30.     protected:
  31.     virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
  32.     //}}AFX_VIRTUAL
  33.  
  34. // Implementation
  35. public:
  36.     virtual ~CSimplePlayerMFCView();
  37. #ifdef _DEBUG
  38.     virtual void AssertValid() const;
  39.     virtual void Dump(CDumpContext& dc) const;
  40. #endif
  41.  
  42. protected:
  43.  
  44. // Generated message map functions
  45. protected:
  46.     //{{AFX_MSG(CSimplePlayerMFCView)
  47.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  48.     afx_msg void OnDestroy();
  49.     afx_msg void OnSize(UINT nType, int cx, int cy);
  50.     //}}AFX_MSG
  51.     DECLARE_MESSAGE_MAP()
  52. };
  53.  
  54. #ifndef _DEBUG  // debug version in SimplePlayer MFCView.cpp
  55. inline CSimplePlayerMFCDoc* CSimplePlayerMFCView::GetDocument()
  56.    { return (CSimplePlayerMFCDoc*)m_pDocument; }
  57. #endif
  58.  
  59. /////////////////////////////////////////////////////////////////////////////
  60.